<template>
    <div>
        {{ message }}
        <button @click="sendEmit">点击发送</button>
    </div>
</template>

<script>
export default {
    name: 'StudyPage',
    props: {
        message:{
            type: String,
            default: ''
        }
    },
    methods: {
        sendEmit() {
            this.$emit('child-event', 'hello world')
        }
    }

}
</script>

<style lang="scss" scoped></style>